import { createMemoryHistory, createRouter } from 'vue-router';

const routes = [
    {
        path: '/',
        component: () => import('../Frame.vue'),
        //     children: [
        //         {
        //             path: "view",
        //             component: () => import('../model/ViewApp.vue')
        //         }, {
        //             path: 'design',
        //             component: () => import('../model/DesignApp.vue')
        //         }

        //     ]
    },
    {
        path: "/survey/design",
        component: () => import('../pages/design.vue')
    },
    {
        path: "/survey/preview",
        component: () => import('../pages/preview.vue')
    }

];

const router = createRouter({
    history: createMemoryHistory(),
    routes,
});

export default router;